package com.amigo.online.consumer.video.service;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.amigo.online.common.core.response.Response;
import com.amigo.online.common.param.dto.video.MusicDto;


@FeignClient(name = "amigo-online-provider-video")
public interface MusicService {

	@RequestMapping(value = "/music/system/musics/{musicid}/{page}/{size}", method = RequestMethod.GET)
	ResponseEntity<Response> myVideos(@PathVariable("musicid")Long musicid,@PathVariable("page")Integer page, @PathVariable("size")Integer size);
	
	@RequestMapping(value = "/music/collect/music/{musicid}", method = RequestMethod.GET)
	ResponseEntity<Response> collectMusic(@PathVariable("musicid")Long musicid);

	@RequestMapping(value = "/music/cancel/collect/{musicid}", method = RequestMethod.DELETE)
	ResponseEntity<Response> cancelCollect(@PathVariable("musicid")Long musicid);

	@RequestMapping(value = "/music/getAll", method = RequestMethod.GET)
	ResponseEntity<Response> getAll();

	@RequestMapping(value = "/music/new", method = RequestMethod.POST)
	ResponseEntity<Response> newUserVideo(MusicDto dto);

	@RequestMapping(value = "/music/my/collect/musics/{page}/{size}", method = RequestMethod.GET)
	ResponseEntity<Response> myUpedVideos(@PathVariable("page")Integer page,@PathVariable("size") Integer size);
}
